#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTabWidget>
#include "ocrwidget.h"
#include "transwidget.h"
#include "calculatorwidget.h"
#include <QSystemTrayIcon>
#include <QMenu>
#include <QAction>
class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QTabWidget *pMainTableWidget;
    OcrWidget *pOcrWidget;
    TransWidget *pTransWidget;
    CalculatorWidget *pCalWidget;

    QSystemTrayIcon *trayIcon;
    QMenu *trayMenu;
    QAction *quitAction;
private:
    void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
protected:
    void closeEvent(QCloseEvent *event);
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
};
#endif // MAINWINDOW_H
